home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / Direct3D / EffectEdit / StdAfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  1.5 KB  |  45 lines

  1. // stdafx.h : include file for standard system include files,
  2. //  or project specific include files that are used frequently, but
  3. //      are changed infrequently
  4. //
  5.  
  6. #if !defined(AFX_STDAFX_H__7714765B_7A75_4F14_9C77_0DFF62CC3505__INCLUDED_)
  7. #define AFX_STDAFX_H__7714765B_7A75_4F14_9C77_0DFF62CC3505__INCLUDED_
  8.  
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12.  
  13. #ifndef _WIN32_WINNT
  14. #define _WIN32_WINNT 0x0501
  15. #endif
  16.  
  17. #define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
  18.  
  19. #include <afxwin.h>         // MFC core and standard components
  20. #include <afxext.h>         // MFC extensions
  21. #include <afxdtctl.h>        // MFC support for Internet Explorer 4 Common Controls
  22. #ifndef _AFX_NO_AFXCMN_SUPPORT
  23. #include <afxcmn.h>            // MFC support for Windows Common Controls
  24. #endif // _AFX_NO_AFXCMN_SUPPORT
  25.  
  26. #include <assert.h>
  27. #include <WindowsX.h>
  28. #include <d3d9.h>
  29. #include <d3dx9.h>
  30. #include <new.h>
  31. #include "DXUT.h"
  32. #include "DXUTmisc.h"
  33. #include "DXUTgui.h"
  34. #include "DXUTEnum.h"
  35. #include "DXUTSettingsDlg.h"
  36.  
  37. #define SAFE_DELETE(p)       { if(p) { delete (p);     (p)=NULL; } }
  38. #define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p);   (p)=NULL; } }
  39. #define SAFE_RELEASE(p)      { if(p) { (p)->Release(); (p)=NULL; } }
  40.  
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  43.  
  44. #endif // !defined(AFX_STDAFX_H__7714765B_7A75_4F14_9C77_0DFF62CC3505__INCLUDED_)
  45.